package com.manage.design.dto;

import javax.validation.constraints.NotEmpty;

/**
 * @Create by ldr.
 * @create 2018-09-07 22:47
 * @Description：操作员修改密码封装实体类
 */
public class OperatorInfo {

    /**
     * 操作员账号
     */
    @NotEmpty(message = "账号不能为空")
    private String user;

    /**
     * 操作员原密码
     */
    @NotEmpty(message="原密码不能为空")
    private String passOld;

    /**
     * 操作员新密码
     */
    @NotEmpty(message="新密码不能为空")
    private String passNew;

    /**
     * 操作员新密码
     */
    @NotEmpty(message="新密码不能为空")
    private String passNewOk;

    public String getUser() {
        return user;
    }

    public void setUser(String user) {
        this.user = user;
    }

    public String getPassOld() {
        return passOld;
    }

    public void setPassOld(String passOld) {
        this.passOld = passOld;
    }

    public String getPassNew() {
        return passNew;
    }

    public void setPassNew(String passNew) {
        this.passNew = passNew;
    }

    public String getPassNewOk() {
        return passNewOk;
    }

    public void setPassNewOk(String passNewOk) {
        this.passNewOk = passNewOk;
    }

    @Override
    public String toString() {
        return "OperatorInfo{" +
                "user='" + user + '\'' +
                ", passOld='" + passOld + '\'' +
                ", passNew='" + passNew + '\'' +
                ", passNewOk='" + passNewOk + '\'' +
                '}';
    }
}
